<?php if (!defined('BASEPATH')) exit('No direct script access allowed'); ?>

<?php
$attributes = array(
    'class' => 'control-label',
);
?>
<div class="span9">

    <?php echo get_message(); ?>
    <h2><?php echo $titulo; ?></h2>

    <h3>Buscar Por:</h3>

    <?php echo form_open(); ?>
    
    <div class="control-group">
        <?php echo form_label('Dpto Judicial', 'deptoJudicialId', $attributes); ?>
        <div class="controls input-append">
            <?php
            echo form_dropdown('deptoJudicialId', $dptoJudicial, '', 'class="span4" id="deptoJudicialId"');
            ?>           
        </div>
   </div>
   
    <div class="control-group">
        <?php echo form_label('Fecha Desde', 'fechaDesde', $attributes); ?>
        <div class="controls input-append">
            <?php
            echo form_input(array('class' => 'span3 date-picker', 'data-date-format' => 'dd/mm/yyyy', 'name' => 'fechaDesde', 'type' => 'text', 'value' => $fechaDesde));
            ?><span class="add-on"><i class="icon-calendar"></i></span>
        </div>
    </div>

    <div class="control-group">
        <?php echo form_label('Fecha Hasta', 'fechaHasta', $attributes); ?>
        <div class="controls input-append">
            <?php
            echo form_input(array('class' => 'span3 date-picker', 'data-date-format' => 'dd/mm/yyyy', 'name' => 'fechaHasta', 'type' => 'text', 'value' => $fechaHasta));
            ?><span class="add-on"><i class="icon-calendar"></i></span>
        </div>
    </div>
    <div class="control-group">
        <?php echo form_label('Fuero', 'fueroId', $attributes); ?>
        <div class="controls input-append">
            <?php
            echo form_dropdown('fueroId', $fuero, '', 'class="span4" id="fueroId"');
            ?>           
        </div>
    </div>
    <div class="span2">
        <div class="control-group">
            <div class="controls">
                <?php echo form_input(array('class' => 'span11', 'name' => 'submit', 'type' => 'submit', 'value' => 'Buscar', 'class' => 'btn')); ?>
            </div>
        </div>
    </div>
    <?php echo form_close(); ?>

    <?php echo form_hidden('url', ''); ?>